// 品牌管理相关接口请求函数
import request from '@/utils/request'

// 获取品牌分页列表
export const getTrademarkPageListApi = (page,limit) =>{
    return request.get(`/admin/product/baseTrademark/${page}/${limit}`)
}
// 添加品牌
export const saveTrademarkApi = (tmName,logoUrl)=>{
    return request.post(`/admin/product/baseTrademark/save`,{tmName,logoUrl})
}
export const saveTrademarkApi2 = (trademark) => {
    return request.post(`/admin/product/baseTrademark/save`, trademark)
}
  // 修改品牌
  export const updateTrademarkApi = (trademark) => {
    return request.put(`/admin/product/baseTrademark/update`, trademark)
}
  // 删除品牌
  export const removeTrademarkApi = (id) => {
    return request.delete(`/admin/product/baseTrademark/remove/${id}`)
}
